home *** CD-ROM | disk | FTP | other *** search
- Path: isum2.iastate.edu!cakamman
- From: cakamman@iastate.edu (Chris A Kamman)
- Newsgroups: comp.lang.c++
- Subject: Header files and friend functions!
- Date: 14 Mar 96 22:27:23 GMT
- Organization: Iowa State University, Ames, Iowa
- Message-ID: <cakamman.826842443@isum2.iastate.edu>
- NNTP-Posting-Host: isum2.iastate.edu
-
- Hi,
-
- I have a list.cpp file that contains all the code including
- main.
-
- I would like to separate them into list.cpp main.cpp - and
- a header file list.h.
-
- Most of the compilation phase goes smoothly. However, I have a
- couple of friend functions ( as templates - to print out the data). How
- can I declare these as extern?
-
- I tried extern template<class T> ostream &operator << (ostream
- &str,List<T> &obj);
-
- But I get errors - Using VC4.0, on Winnt3.51.
-
- Thanks for any help.
-
-